<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>日报管理</title>
    <link rel="stylesheet" type="text/css" href="./easyui/themes/bootstrap/easyui.css">
    <link rel="stylesheet" type="text/css" href="./easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="./easyui/themes/color.css">
    <script type="text/javascript" src="./easyui/jquery.min.js"></script>
    <script type="text/javascript" src="./easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="./js/common.js"></script>
</head>
<body>
<div class="easyui-panel" style="padding:15px 5px;width:100%;">
      当前用户：<span id="login_user"></span> | 切换用户：<input id="cc" name="cuser" value=""> |
    <a href="javascript:void(0)" onclick="sendMaid()" class="easyui-linkbutton" data-options="iconCls:'icon-email'">发送日报</a>
  </div>
  <div class="easyui-panel" style="padding:15px 5px;width:100%;">
      <a href="report.html" class="easyui-linkbutton" data-options="toggle:true,group:'g2',plain:true">日报管理</a>
      <a href="plan.html" class="easyui-linkbutton" data-options="toggle:true,group:'g2',plain:true">计划管理</a>
      <a href="mail.html" class="easyui-linkbutton" data-options="toggle:true,group:'g2',plain:true ">邮件管理</a>
      <a href="log.html" class="easyui-linkbutton" data-options="toggle:true,group:'g2',plain:true ,selected:true">发送记录</a>
  </div>

    <table id="dg" data-options="rownumbers:true,singleSelect:true" style="width:100%;">

    </table>


    <script type="text/javascript">
        var toolbar = [{
            text:'刷新',
            iconCls:'icon-add',
            handler:function(){
               loadData();
            }
        }];

        $('#dg').datagrid({
            columns:[[
                {field:'createTime',title:'发生时间'},
                {field:'result',title:'结果'}
            ]],
            toolbar:toolbar,
            onDblClickRow:function(index,row){
               console.log(row.msg);
            }
        });
        function loadData(){
            $.cpost('log/get.do',{},function(data){
                $('#dg').datagrid('loadData',{"rows":data.data});
            });
        }

        loadData();

    </script>
    <script type="text/javascript" src="./js/common_head_hand.js"></script>
</body>
</html>
